import sys
import math
import numpy as np

def data_contrast(file1, file2):
    """
    Verify that the data are the same
    """
    _data1 = np.fromfile(file1, dtype=np.float16)
    _data2 = np.fromfile(file2, dtype=np.float16)

    return _data1, _data2

if __name__ == '__main__':
    # input1 = sys.argv[1]
    # input2 = sys.argv[2]
    # data1, data2 = data_contrast(input1, input2)
    data1, data2 = data_contrast("../data/output_0.bin", "../data/npu_output_0.bin")
    result = data1 - data1

    print(result)
